package com.hoperun.service;

import java.util.List;

import com.hoperun.bean.AppFeedbacks;
import com.hoperun.framework.ibatis.page.BootGrid;
import com.hoperun.framework.ibatis.page.BootGridPage;
import com.hoperun.framework.query.Criteria;

public interface IAppFeedbacksSV
{
    /**
	 * 根据主键查询
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public AppFeedbacks queryById(long id)throws Exception;
	
	/**
	 * 添加
	 * @param appFeedbacks
	 * @return
	 * @throws Exception
	 */
	public AppFeedbacks save(AppFeedbacks appFeedbacks)throws Exception;
	
	/**
	 * 更新
	 * @param appFeedbacks
	 * @throws Exception
	 */
	public void update(AppFeedbacks appFeedbacks)throws Exception;
	
	/**
	 * 物理删除
	 * @param id
	 * @throws Exception
	 */
	public void delete(long id)throws Exception;

	/**
	 * 新增或删除
	 * @param appFeedbacks
	 * @throws Exception
	 */
	public void saveOrUpdate(AppFeedbacks appFeedbacks)throws Exception;

	/**
	 * 新增或删除
	 * @param list
	 * @throws Exception
	 */
	public void saveOrUpdate(List<AppFeedbacks> list)throws Exception;

	/**
	 * 按条件查询记录
	 * @param criteria
	 * @throws Exception
	 */
	public List<AppFeedbacks> queryByCondition(Criteria criteria)throws Exception;
	
	/**
	 * 按条件查询记录条数
	 * @param criteria
	 * @throws Exception
	 */
	public int queryCountByCondition(Criteria criteria)throws Exception;
	
	/**
	 *  分页查询
	 * @param criteria
	 * @return
	 * @throws Exception
	 */
	public BootGridPage<AppFeedbacks> queryPage(Criteria criteria,
			BootGrid<AppFeedbacks> grid) throws Exception ;

}
